package com.distribution.system.domain.bo;

import com.distribution.common.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;


/**
 * @author destinyhlp
 * @date 2023/6/1 22:57
 */


@Data
public class UnOrderImportBO implements Serializable {
    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空")
    @Excel(name = "姓名")
    private String customerName;
    /**
     * 证件号
     */
    @NotBlank(message = "证件号不能为空")
    @Excel(name = "证件号")
    private String customerCertNo;
    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空")
    @Excel(name = "联系电话")
    private String customerPhone;
    /**
     * 收货地省份
     */
    @NotBlank(message = "收货地省份不能为空")
    @Excel(name = "收货地省份")
    private String addressProvince;
    /**
     * 收货地城市
     */
    @NotBlank(message = "收货地城市不能为空")
    @Excel(name = "收货地城市")
    private String addressCity;
    /**
     * 收货地县区
     */
    @NotBlank(message = "收货地县区不能为空")
    @Excel(name = "收货地县区")
    private String addressArea;
    /**
     * 收货地详细地址
     */
    @NotBlank(message = "收货地详细地址不能为空")
    @Excel(name = "收货地详细地址")
    private String addressStreet;

    /**
     * 归属地省份
     */
    @NotBlank(message = "归属地省份不能为空")
    @Excel(name = "归属地省份")
    private String attributeProvince;
    /**
     * 归属地城市
     */
    @NotBlank(message = "归属地城市不能为空")
    @Excel(name = "归属地城市")
    private String attributeCity;

    @Excel(name = "导入失败原因")
    private String importFailReason;

    @Override
    public String toString() {
        return "【姓名='" + customerName + '\'' +
                ", 证件号='" + customerCertNo + '\'' +
                ", 联系电话='" + customerPhone + '\'' +
                ", 收货地省份='" + addressProvince + '\'' +
                ", 收货地城市='" + addressCity + '\'' +
                ", 收货地县区='" + addressArea + '\'' +
                ", 收货地详细地址='" + addressStreet + '\'' +
                ", 导入失败原因='" + importFailReason + "'】";
    }
}
